<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.9.0">
    

    

    



    <meta charset="utf-8">
    
    
    
    
    <title>JDBC 常见错误分析 | 欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~ | It&#39;s founded on March 9, 2019 and the open source address for the blog notes https://github.com/YUbuntu0109/YUbuntu0109.github.io</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="Java,JDBC,MySQL">
    <meta name="description" content="JDBC ( Java Database Connectivity ) 常见错误分析今遇到一个网友问到JDBC中一个常见的错误,让我想起了大一时自己学习JDBC时整理的文档,继而公布出来分享给大家. 根据不同问题给出相应的解析问题一 : 加载驱动 Class.forName(&amp;quot;com.mysql.jdbc.Driver&amp;quot;);错误 程序报错信息123456Loading clas">
<meta name="keywords" content="Java,JDBC,MySQL">
<meta property="og:type" content="article">
<meta property="og:title" content="JDBC 常见错误分析">
<meta property="og:url" content="https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/index.html">
<meta property="og:site_name" content="欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~">
<meta property="og:description" content="JDBC ( Java Database Connectivity ) 常见错误分析今遇到一个网友问到JDBC中一个常见的错误,让我想起了大一时自己学习JDBC时整理的文档,继而公布出来分享给大家. 根据不同问题给出相应的解析问题一 : 加载驱动 Class.forName(&amp;quot;com.mysql.jdbc.Driver&amp;quot;);错误 程序报错信息123456Loading clas">
<meta property="og:locale" content="en">
<meta property="og:updated_time" content="2019-12-12T15:00:32.199Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="JDBC 常见错误分析">
<meta name="twitter:description" content="JDBC ( Java Database Connectivity ) 常见错误分析今遇到一个网友问到JDBC中一个常见的错误,让我想起了大一时自己学习JDBC时整理的文档,继而公布出来分享给大家. 根据不同问题给出相应的解析问题一 : 加载驱动 Class.forName(&amp;quot;com.mysql.jdbc.Driver&amp;quot;);错误 程序报错信息123456Loading clas">
    
        <link rel="alternate" type="application/atom+xml" title="欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="//unpkg.com/hexo-theme-material-indigo@latest/css/style.css">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/my-portrait.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">黄宇辉</h5>
          <a href="mailto:3083968068@qq.com" title="3083968068@qq.com" class="mail">3083968068@qq.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                Homepage
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                Archives
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                Tags
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                Categories
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/YUbuntu0109" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://space.bilibili.com/364361791" target="_blank" >
                <i class="icon icon-lg icon-link"></i>
                Bilibili
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">JDBC 常见错误分析</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="Search">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        

        <!-- background music(Mar 11,2019 AM) -->
        <div>
            <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=280 height=52 src="//music.163.com/outchain/player?type=2&id=438801642&auto=1&height=32"></iframe>
        </div>
        <!---------------------->
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">JDBC 常见错误分析</h1>
        <h5 class="subtitle">
            
                <time datetime="2019-03-14T19:32:12.000Z" itemprop="datePublished" class="page-time">
  2019-03-14
</time>


            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap post-toc-shrink" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#JDBC-Java-Database-Connectivity-常见错误分析"><span class="post-toc-number">1.</span> <span class="post-toc-text">JDBC ( Java Database Connectivity ) 常见错误分析</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#今遇到一个网友问到JDBC中一个常见的错误-让我想起了大一时自己学习JDBC时整理的文档-继而公布出来分享给大家-根据不同问题给出相应的解析"><span class="post-toc-number">1.1.</span> <span class="post-toc-text">今遇到一个网友问到JDBC中一个常见的错误,让我想起了大一时自己学习JDBC时整理的文档,继而公布出来分享给大家. 根据不同问题给出相应的解析</span></a></li></ol></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#问题一-加载驱动-Class-forName-quot-com-mysql-jdbc-Driver-quot-错误"><span class="post-toc-number">2.</span> <span class="post-toc-text">问题一 : 加载驱动 Class.forName(&quot;com.mysql.jdbc.Driver&quot;);错误</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#程序报错信息"><span class="post-toc-number">2.1.</span> <span class="post-toc-text">程序报错信息</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#解析"><span class="post-toc-number">2.2.</span> <span class="post-toc-text">解析</span></a></li></ol></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#解决方案"><span class="post-toc-number">3.</span> <span class="post-toc-text">解决方案</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#问题二-：连接错误"><span class="post-toc-number">4.</span> <span class="post-toc-text">问题二 ：连接错误</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#程序报错信息-1"><span class="post-toc-number">4.1.</span> <span class="post-toc-text">程序报错信息</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#解析以及解决方案"><span class="post-toc-number">4.2.</span> <span class="post-toc-text">解析以及解决方案</span></a></li></ol></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#问题三-：时区错误"><span class="post-toc-number">5.</span> <span class="post-toc-text">问题三 ：时区错误</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#程序报错信息-2"><span class="post-toc-number">5.1.</span> <span class="post-toc-text">程序报错信息</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#解析及解决方案"><span class="post-toc-number">5.2.</span> <span class="post-toc-text">解析及解决方案</span></a></li></ol></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#问题四-：当上述问题全部已经解决后可以正常连接数据库-但是如果重启MySQL服务器后重新连接数据库时发现报错！"><span class="post-toc-number">6.</span> <span class="post-toc-text">问题四 ：当上述问题全部已经解决后可以正常连接数据库,但是如果重启MySQL服务器后重新连接数据库时发现报错！</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#程序报错信息-3"><span class="post-toc-number">6.1.</span> <span class="post-toc-text">程序报错信息</span></a></li><li class="post-toc-item post-toc-level-4"><a class="post-toc-link" href="#解决方案-1"><span class="post-toc-number">6.2.</span> <span class="post-toc-text">解决方案</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-5"><a class="post-toc-link" href="#哎哟不知觉又在图书馆又待了一天-都不知已将近九点了-收拾下回寝室啦"><span class="post-toc-number">6.2.1.</span> <span class="post-toc-text">哎哟不知觉又在图书馆又待了一天..都不知已将近九点了,收拾下回寝室啦 ~</span></a></li></ol></li></ol></li></ol>
        </nav>
    </aside>


<article id="post-JDBC-常见错误分析"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">JDBC 常见错误分析</h1>
        <div class="post-meta">
            <time class="post-time" title="2019-03-14 19:32:12" datetime="2019-03-14T19:32:12.000Z"  itemprop="datePublished">2019-03-14</time>

            


            

        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <h3 id="JDBC-Java-Database-Connectivity-常见错误分析"><a href="#JDBC-Java-Database-Connectivity-常见错误分析" class="headerlink" title="JDBC ( Java Database Connectivity ) 常见错误分析"></a>JDBC ( Java Database Connectivity ) 常见错误分析</h3><h4 id="今遇到一个网友问到JDBC中一个常见的错误-让我想起了大一时自己学习JDBC时整理的文档-继而公布出来分享给大家-根据不同问题给出相应的解析"><a href="#今遇到一个网友问到JDBC中一个常见的错误-让我想起了大一时自己学习JDBC时整理的文档-继而公布出来分享给大家-根据不同问题给出相应的解析" class="headerlink" title="今遇到一个网友问到JDBC中一个常见的错误,让我想起了大一时自己学习JDBC时整理的文档,继而公布出来分享给大家. 根据不同问题给出相应的解析"></a>今遇到一个网友问到JDBC中一个常见的错误,让我想起了大一时自己学习JDBC时整理的文档,继而公布出来分享给大家. <code>根据不同问题给出相应的解析</code></h4><h3 id="问题一-加载驱动-Class-forName-quot-com-mysql-jdbc-Driver-quot-错误"><a href="#问题一-加载驱动-Class-forName-quot-com-mysql-jdbc-Driver-quot-错误" class="headerlink" title="问题一 : 加载驱动 Class.forName(&quot;com.mysql.jdbc.Driver&quot;);错误"></a>问题一 : 加载驱动 <code>Class.forName(&quot;com.mysql.jdbc.Driver&quot;);</code>错误</h3><ul>
<li><h4 id="程序报错信息"><a href="#程序报错信息" class="headerlink" title="程序报错信息"></a><code>程序报错信息</code></h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">Loading <span class="class"><span class="keyword">class</span> `<span class="title">com</span>.<span class="title">mysql</span>.<span class="title">jdbc</span>.<span class="title">Driver</span>'. <span class="title">This</span> <span class="title">is</span> <span class="title">deprecated</span>. <span class="title">The</span> <span class="title">new</span> <span class="title">driver</span> <span class="title">class</span> <span class="title">is</span> `<span class="title">com</span>.<span class="title">mysql</span>.<span class="title">cj</span>.<span class="title">jdbc</span>.<span class="title">Driver</span>'. </span></span><br><span class="line"><span class="class"><span class="title">The</span> <span class="title">driver</span> <span class="title">is</span> <span class="title">automatically</span> <span class="title">registered</span> <span class="title">via</span> <span class="title">the</span> <span class="title">SPI</span> <span class="title">and</span> <span class="title">manual</span> <span class="title">loading</span> <span class="title">of</span> <span class="title">the</span> <span class="title">driver</span> <span class="title">class</span> <span class="title">is</span> <span class="title">generally</span> <span class="title">unnecessary</span>. ()...</span></span><br><span class="line"><span class="class"></span></span><br><span class="line">[译文如下]</span><br><span class="line">加载类 <span class="string">'com.mysql.jdbc.Driver'</span> 这是不赞成的.新的驱动程序类是 <span class="string">'com.mysql.cj.jdbc.Driver'</span> 驱动程序.</span><br><span class="line">驱动程序是通过SPI自动注册的，并且手动加载驱动类通常是不必要的...</span><br></pre></td></tr></table></figure>
</li>
<li><h4 id="解析"><a href="#解析" class="headerlink" title="解析"></a><code>解析</code></h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">新版的驱动类位置有了变化(不影响使用，但会报警告)</span><br><span class="line">	旧版连接(MySQL Connection/J <span class="number">5</span>.x) ——&gt; jdbc.url = com.mysql.jdbc.Driver</span><br><span class="line">	新版连接(MySQL Connection/J <span class="number">6</span>.x) ——&gt; jdbc.url= com.mysql.cj.jdbc.Driver</span><br></pre></td></tr></table></figure>
</li>
<li><h3 id="解决方案"><a href="#解决方案" class="headerlink" title="解决方案"></a><code>解决方案</code></h3><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">将 <span class="string">"com.mysql.jdbc.Driver"</span> 改成 <span class="string">"com.mysql.cj.jdbc.Driver"</span> .</span><br></pre></td></tr></table></figure>
</li>
</ul>
<h3 id="问题二-：连接错误"><a href="#问题二-：连接错误" class="headerlink" title="问题二 ：连接错误"></a>问题二 ：连接错误</h3><ul>
<li><h4 id="程序报错信息-1"><a href="#程序报错信息-1" class="headerlink" title="程序报错信息"></a><code>程序报错信息</code></h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">SunAug <span class="number">19</span> <span class="number">17</span>:<span class="number">39</span>:<span class="number">12</span> CST <span class="number">2018</span> WARN: Establishing SSL connection without server<span class="string">'s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn'</span>t set. For compliance with existing applications not using SSL the verifyServer Certificate property is set to <span class="string">'false'</span>. You need either to explicitly disable SSL by setting useSSL=<span class="keyword">false</span>, or set useSSL=<span class="keyword">true</span> and provide truststore <span class="keyword">for</span> server certificate verification.</span><br><span class="line"></span><br><span class="line">[译文如下]</span><br><span class="line">SunAug <span class="number">19</span> <span class="number">17</span>:<span class="number">39</span>∶<span class="number">12</span> CST <span class="number">2018</span>警告：不建议建立没有服务器身份验证的SSL连接.根据MySQL <span class="number">5.5</span>.45 +、<span class="number">5.626</span>+和<span class="number">5.7</span>.6+的要求,如果没有设置显式选项，默认情况下必须建立SSL连接.对于不使用SSL的现有应用程序,<span class="string">'ValuyServer'</span>证书属性设置为<span class="string">'false'</span>.您需要通过设置<span class="string">'USESL=false'</span>来显式禁用<span class="string">'SSL'</span>,或者设置<span class="string">'useSSL=true'</span>,并为服务器证书验证提供信任存储.</span><br></pre></td></tr></table></figure>
</li>
<li><h4 id="解析以及解决方案"><a href="#解析以及解决方案" class="headerlink" title="解析以及解决方案"></a><code>解析以及解决方案</code></h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">由报错信息可得知,MySQL版本更新后的新特性: 如果连接数据库必须通过服务器的身份验证,当然上述已给出解决方案的建议.</span><br><span class="line">	方案一 ： 在url后加：useSSL=<span class="keyword">false</span>; (简单易操作)</span><br><span class="line">	方案二 ： 在url后加：useSSL=<span class="keyword">true</span>;  (并未服务器证书验证提供信任存储)</span><br></pre></td></tr></table></figure>
</li>
</ul>
<h3 id="问题三-：时区错误"><a href="#问题三-：时区错误" class="headerlink" title="问题三 ：时区错误"></a>问题三 ：时区错误</h3><ul>
<li><h4 id="程序报错信息-2"><a href="#程序报错信息-2" class="headerlink" title="程序报错信息"></a><code>程序报错信息</code></h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">Exception in thread <span class="string">"main"</span> java.sql.SQLException: The server time zone value <span class="string">'???ú±ê×??±??'</span> is unrecognized or represents more than one time zone. <span class="function">You must configure either the server or JDBC <span class="title">driver</span> <span class="params">(via the serverTimezone configuration property)</span> to use a more specifc time zone value <span class="keyword">if</span> you want to utilize time zone support.</span></span><br><span class="line"><span class="function"></span></span><br><span class="line"><span class="function">[译文如下]</span></span><br><span class="line"><span class="function">java.sql.SQLException ：服务器时区值 '？？±××？±？' 是不被识别的,或者表示一个以上的时区.如果要利用时区支持,必须配置服务器或JDBC驱动程序<span class="params">(通过 serverTimezone 配置属性)</span>使用更具体的时区值.</span></span><br></pre></td></tr></table></figure>
</li>
<li><h4 id="解析及解决方案"><a href="#解析及解决方案" class="headerlink" title="解析及解决方案"></a><code>解析及解决方案</code></h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">为URL添加参数 serverTimezone=UTC 即可,这里的时区可以根据自己数据库的设定来设置（GMT/UTC ）.</span><br></pre></td></tr></table></figure>
</li>
</ul>
<h3 id="问题四-：当上述问题全部已经解决后可以正常连接数据库-但是如果重启MySQL服务器后重新连接数据库时发现报错！"><a href="#问题四-：当上述问题全部已经解决后可以正常连接数据库-但是如果重启MySQL服务器后重新连接数据库时发现报错！" class="headerlink" title="问题四 ：当上述问题全部已经解决后可以正常连接数据库,但是如果重启MySQL服务器后重新连接数据库时发现报错！"></a>问题四 ：当上述问题全部已经解决后可以正常连接数据库,但是如果重启MySQL服务器后重新连接数据库时发现报错！</h3><ul>
<li><h4 id="程序报错信息-3"><a href="#程序报错信息-3" class="headerlink" title="程序报错信息"></a><code>程序报错信息</code></h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed.</span><br></pre></td></tr></table></figure>
</li>
<li><h4 id="解决方案-1"><a href="#解决方案-1" class="headerlink" title="解决方案"></a><code>解决方案</code></h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">在URL连接后添加 ： allowPublicKeyRetrieval = <span class="keyword">true</span></span><br></pre></td></tr></table></figure>
</li>
</ul>
<h5 id="哎哟不知觉又在图书馆又待了一天-都不知已将近九点了-收拾下回寝室啦"><a href="#哎哟不知觉又在图书馆又待了一天-都不知已将近九点了-收拾下回寝室啦" class="headerlink" title="哎哟不知觉又在图书馆又待了一天..都不知已将近九点了,收拾下回寝室啦 ~"></a><code>哎哟不知觉又在图书馆又待了一天..都不知已将近九点了,收拾下回寝室啦 ~</code></h5>
        </div>

        <blockquote class="post-copyright">
    
    <div class="content">
        
<span class="post-time">
    Last updated: <time datetime="2019-12-12T15:00:32.199Z" itemprop="dateUpdated">2019-12-12 15:00:32</time>
</span><br>


        
    </div>
    
    <footer>
        <a href="https://yubuntu0109.github.io">
            <img src="/img/my-portrait.jpg" alt="黄宇辉">
            黄宇辉
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/JDBC/">JDBC</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Java/">Java</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/MySQL/">MySQL</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/&title=《JDBC 常见错误分析》 — 欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~&pic=https://yubuntu0109.github.io/img/my-portrait.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/&title=《JDBC 常见错误分析》 — 欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~&source=My Personal Website For Blog" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《JDBC 常见错误分析》 — 欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~&url=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/&via=https://yubuntu0109.github.io" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/2019/03/15/全国计算机等级考试-Java/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">全国计算机等级考试-Java</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/2019/03/12/Ubuntu18-04-Mac-theme/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">Ubuntu18.04-Mac theme</h4>
      </a>
    </div>
  
</nav>



    




















</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        thanks ~
        <i class="icon icon-quote-right"></i>
    </h3>
    <div class="reward-content">
        
        <div class="reward-code">
            <img id="rewardCode" src="/img/Wechat_appreciates.png" alt="打赏二维码">
        </div>
        
    </div>
</div>



</div>

        <footer class="footer">
    <div class="top">
        

        <p>
            
                <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            
            <span>This blog is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.</span>
        </p>
    </div>
    <div class="bottom">
        <!-- 统计网站用户访问量. 技术支持：不蒜子(http://busuanzi.ibruce.info/) ————> Mar 13,2019 -->
        <p>
            <font style='font-size: 12px;color:springgreen'>
                    <div align="center">
                        <!-- 安装脚本 -->
                        <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
                        <!-- 安装标签 -->
                        <span id="busuanzi_container_site_pv">
                            ◎用户总访问量 : <span id="busuanzi_value_site_pv"></span> 次 ~ &nbsp&nbsp
                        </span>
                        <span id="busuanzi_container_site_uv">
                            ◎总访客数(（づ￣3￣）づ╭❤～) : <span id="busuanzi_value_site_uv"></span>人 ~
                        </span>
                    </div>
                </font>
            </p>
            <!---------->
            <p>
                <font style='font-size: 10px'>
                    <span>黄宇辉 &copy; 2019</span>
                    <span>
                        
                        Blog source <a href="https://github.com/YUbuntu0109/YUbuntu0109.github.io" target="_blank">Github</a> 
                        Power by <a href="http://hexo.io/" target="_blank">Hexo</a>
                        Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
                    </span>
                </font>
            </p>
        </div>
    </footer>
    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/&title=《JDBC 常见错误分析》 — 欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~&pic=https://yubuntu0109.github.io/img/my-portrait.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/&title=《JDBC 常见错误分析》 — 欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~&source=My Personal Website For Blog" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《JDBC 常见错误分析》 — 欢迎参观小灰灰的网站哟 ヾ(◍°∇°◍)ﾉﾞ ~&url=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/&via=https://yubuntu0109.github.io" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="//api.qrserver.com/v1/create-qr-code/?data=https://yubuntu0109.github.io/2019/03/14/JDBC-常见错误分析/" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };


</script>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/search.min.js" async></script>








<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = 'Where are you going ?';
            clearTimeout(titleTime);
        } else {
            document.title = 'As long as you love me ~';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
